set SPAdminTool=%CommonProgramFiles%\Microsoft Shared\web server extensions\12\BIN\stsadm.exe

@ECHO OFF
echo. Adil Baig's Tech Blog
echo. http://baigadil.blogspot.com
echo. baig.adil@gmail.com
echo.
echo --- Uninstalling the RecentItemsSummary Solution.... ---
ECHO.
Assemblies\sleep.exe 1
echo --- Uninstalling and De-Activating the feature.... ---
ECHO.
Assemblies\sleep.exe 1
"%SPAdminTool%" -o deactivatefeature -filename "CoolStuffs.Webparts.RecentItems\feature.xml" -url %1
"%SPAdminTool%" -o uninstallfeature -filename "CoolStuffs.Webparts.RecentItems\feature.xml" 
ECHO.
Assemblies\sleep.exe 1
echo --- Uninstalling the RecentItemsSummary Cabinet.... ---
"%SPAdminTool%" -o retractsolution -name RecentItemsSummary.wsp -immediate -url %1
"%SPAdminTool%" -o execadmsvcjobs
"%SPAdminTool%" -o deletesolution -name RecentItemsSummary.wsp -override
ECHO.
ECHO.
popd





